-- GENERATED SPELL FOR [Foulweald Pathfinder] --


function spell0_3745(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3745', 621, 1)
end

function Sorts_3745(pUnit, Event)
local choix_sorts_3745 = math.random(0, 0)
if choix_sorts_3745 == 0 then
pUnit:RegisterEvent('spell0_3745', 1, 1)
end
end

function mob3745_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3745', math.random(1500, 3000), 1)
end

function mob3745_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3745_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3745_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3745, 1, 'mob3745_Action')
RegisterUnitEvent(3745, 2, 'mob3745_Leave')
RegisterUnitEvent(3745, 3, 'mob3745_Kill')
RegisterUnitEvent(3745, 4, 'mob3745_Die')
